From d0d5eebd19606e89149770678ade4818227120c8 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 20 Feb 2006 20:04:49 +0000 Subject: [PATCH] Mapopolis: strdup->xstrdup. --- gpsbabel/mapopolis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/mapopolis.c b/gpsbabel/mapopolis.c index 4119030ec..2be3bbb10 100644 --- a/gpsbabel/mapopolis.c +++ b/gpsbabel/mapopolis.c @@ -164,13 +164,13 @@ decode(char *buf) be_read16(&rec->lon1d) / LONDIV2; vdata = (char *) rec + sizeof(*rec); - wpt_tmp->description = strdup(vdata); + wpt_tmp->description = xstrdup(vdata); vdata += strlen(wpt_tmp->description) + 1 + 6; while (*vdata == 0x40) vdata++; decode(vdata); - wpt_tmp->notes = strdup(vdata); + wpt_tmp->notes = xstrdup(vdata); vdata += strlen(wpt_tmp->notes) + 1; waypt_add(wpt_tmp); -- 2.30.2